const express = require("express");
const router = express.Router();

//导入路由函数
const user_Hanlde = require("../router_handle/user");

//导入校验规则的中间件+规则
const expressJoi = require("@escook/express-joi");
const { login_scheme } = require("../scheme/user");
//登录的接口
router.post("/login", expressJoi(login_scheme), user_Hanlde.login);
router.get("/getUserDataByToken", user_Hanlde.getUserDataByToken);
module.exports = router;
